package com.neardrug;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@SpringBootApplication
@Slf4j
@EnableScheduling
@MapperScan(basePackages = {"com.neardrug.mapper"})
public class NearDrugApplication {

    public static void main(String[] args) {
        SpringApplication.run(NearDrugApplication.class, args);
        log.info("启动成功!");
    }

}
